<%- include('./public/header.ejs') %>
<style>
  .dashboard {
    box-sizing: border-box;
    padding: 40px;
    height: calc(100vh - 60px);
    background-color: #f1f1f1;
  }

  .dashboard .dashboard-info {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    background-color: #ffffff;
    padding: 0 40px;
  }

  .dashboard .dashboard-info .info-left {
    display: flex;
    align-items: center;
  }

  .dashboard-info .info-left .info-left__txt a {
    display: block;
    color: #409eff;
    font-size: 12px;
    margin-top: 8px;
    cursor: pointer;
  }

  .dashboard-info .info-left img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 16px;
  }

  .dashboard-info .info-logout {
    width: 100px;
    height: 40px;
    border: none;
    background-color: #e6a23c;
    color: #ffffff;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    display: grid;
    place-content: center;
  }
</style>
<section class="dashboard">
    <div class="dashboard-info">
        <div class="info-left">
            <img src="/static/images/avatar.jpg" alt="头像">
            <div class="info-left__txt">
                <p>下午好，<b style="font-size: 20px"><%= userinfo.nickname %></b></p>
            </div>
        </div>
        <a class="info-logout" href="/admin/auth/logout">退出登录</a>
    </div>
</section>
</body>
</html>
